package com.zhiche.lisa.bms.dao.model.driver;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 线路表
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
@TableName("d_route")
public class Route extends Model<Route> {

    private static final long serialVersionUID = 1L;

    /**
     * 线路ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名称
     */
    private String name;
    /**
     * 起始地标签
     */
    @TableField("o_tag")
    private String oTag;
    /**
     * 起点省编码
     */
    @TableField("o_province_code")
    private String oProvinceCode;
    /**
     * 起点省份
     */
    @TableField("o_province")
    private String oProvince;
    /**
     * 起点市编码
     */
    @TableField("o_city_code")
    private String oCityCode;
    /**
     * 起点城市
     */
    @TableField("o_city")
    private String oCity;
    /**
     * 起点县编码
     */
    @TableField("o_county_code")
    private String oCountyCode;
    /**
     * 起点区县
     */
    @TableField("o_county")
    private String oCounty;
    /**
     * 起点网点ID
     */
    @TableField("o_depot_id")
    private Integer oDepotId;
    /**
     * 起点网点
     */
    @TableField("o_depot")
    private String oDepot;
    /**
     * 起点详细地址
     */
    @TableField("o_addr")
    private String oAddr;
    /**
     * 目的地标签
     */
    @TableField("d_tag")
    private String dTag;
    /**
     * 终点省编码
     */
    @TableField("d_province_code")
    private String dProvinceCode;
    /**
     * 终点省份
     */
    @TableField("d_province")
    private String dProvince;
    /**
     * 终点市编码
     */
    @TableField("d_city_code")
    private String dCityCode;
    /**
     * 终点城市
     */
    @TableField("d_city")
    private String dCity;
    /**
     * 终点县编码
     */
    @TableField("d_county_code")
    private String dCountyCode;
    /**
     * 终点区县
     */
    @TableField("d_county")
    private String dCounty;
    /**
     * 终点网点ID
     */
    @TableField("d_depot_id")
    private Integer dDepotId;
    /**
     * 终点网点
     */
    @TableField("d_depot")
    private String dDepot;
    /**
     * 终点详细地址
     */
    @TableField("d_addr")
    private String dAddr;
    /**
     * 地图里程
     */
    @TableField("map_distance")
    private BigDecimal mapDistance;
    /**
     * 上期里程
     */
    @TableField("previous_distance")
    private BigDecimal previousDistance;
    /**
     * 当前里程
     */
    @TableField("current_distance")
    private BigDecimal currentDistance;
    /**
     * 启用/禁用
     */
    private Integer enable;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getoTag() {
        return oTag;
    }

    public void setoTag(String oTag) {
        this.oTag = oTag;
    }

    public String getoProvinceCode() {
        return oProvinceCode;
    }

    public void setoProvinceCode(String oProvinceCode) {
        this.oProvinceCode = oProvinceCode;
    }

    public String getoProvince() {
        return oProvince;
    }

    public void setoProvince(String oProvince) {
        this.oProvince = oProvince;
    }

    public String getoCityCode() {
        return oCityCode;
    }

    public void setoCityCode(String oCityCode) {
        this.oCityCode = oCityCode;
    }

    public String getoCity() {
        return oCity;
    }

    public void setoCity(String oCity) {
        this.oCity = oCity;
    }

    public String getoCountyCode() {
        return oCountyCode;
    }

    public void setoCountyCode(String oCountyCode) {
        this.oCountyCode = oCountyCode;
    }

    public String getoCounty() {
        return oCounty;
    }

    public void setoCounty(String oCounty) {
        this.oCounty = oCounty;
    }

    public Integer getoDepotId() {
        return oDepotId;
    }

    public void setoDepotId(Integer oDepotId) {
        this.oDepotId = oDepotId;
    }

    public String getoDepot() {
        return oDepot;
    }

    public void setoDepot(String oDepot) {
        this.oDepot = oDepot;
    }

    public String getoAddr() {
        return oAddr;
    }

    public void setoAddr(String oAddr) {
        this.oAddr = oAddr;
    }

    public String getdTag() {
        return dTag;
    }

    public void setdTag(String dTag) {
        this.dTag = dTag;
    }

    public String getdProvinceCode() {
        return dProvinceCode;
    }

    public void setdProvinceCode(String dProvinceCode) {
        this.dProvinceCode = dProvinceCode;
    }

    public String getdProvince() {
        return dProvince;
    }

    public void setdProvince(String dProvince) {
        this.dProvince = dProvince;
    }

    public String getdCityCode() {
        return dCityCode;
    }

    public void setdCityCode(String dCityCode) {
        this.dCityCode = dCityCode;
    }

    public String getdCity() {
        return dCity;
    }

    public void setdCity(String dCity) {
        this.dCity = dCity;
    }

    public String getdCountyCode() {
        return dCountyCode;
    }

    public void setdCountyCode(String dCountyCode) {
        this.dCountyCode = dCountyCode;
    }

    public String getdCounty() {
        return dCounty;
    }

    public void setdCounty(String dCounty) {
        this.dCounty = dCounty;
    }

    public Integer getdDepotId() {
        return dDepotId;
    }

    public void setdDepotId(Integer dDepotId) {
        this.dDepotId = dDepotId;
    }

    public String getdDepot() {
        return dDepot;
    }

    public void setdDepot(String dDepot) {
        this.dDepot = dDepot;
    }

    public String getdAddr() {
        return dAddr;
    }

    public void setdAddr(String dAddr) {
        this.dAddr = dAddr;
    }

    public BigDecimal getMapDistance() {
        return mapDistance;
    }

    public void setMapDistance(BigDecimal mapDistance) {
        this.mapDistance = mapDistance;
    }

    public BigDecimal getPreviousDistance() {
        return previousDistance;
    }

    public void setPreviousDistance(BigDecimal previousDistance) {
        this.previousDistance = previousDistance;
    }

    public BigDecimal getCurrentDistance() {
        return currentDistance;
    }

    public void setCurrentDistance(BigDecimal currentDistance) {
        this.currentDistance = currentDistance;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Route{" +
                ", id=" + id +
                ", name=" + name +
                ", oTag=" + oTag +
                ", oProvinceCode=" + oProvinceCode +
                ", oProvince=" + oProvince +
                ", oCityCode=" + oCityCode +
                ", oCity=" + oCity +
                ", oCountyCode=" + oCountyCode +
                ", oCounty=" + oCounty +
                ", oDepotId=" + oDepotId +
                ", oDepot=" + oDepot +
                ", oAddr=" + oAddr +
                ", dTag=" + dTag +
                ", dProvinceCode=" + dProvinceCode +
                ", dProvince=" + dProvince +
                ", dCityCode=" + dCityCode +
                ", dCity=" + dCity +
                ", dCountyCode=" + dCountyCode +
                ", dCounty=" + dCounty +
                ", dDepotId=" + dDepotId +
                ", dDepot=" + dDepot +
                ", dAddr=" + dAddr +
                ", mapDistance=" + mapDistance +
                ", previousDistance=" + previousDistance +
                ", currentDistance=" + currentDistance +
                ", enable=" + enable +
                ", createTime=" + createTime +
                ", creator=" + creator +
                ", updateTime=" + updateTime +
                "}";
    }
}
